<?xml version="1.0" ?>
<xsl:stylesheet		xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
							version="1.0"
>
<xsl:output omit-xml-declaration="yes" />
<xsl:param name="pViewNames" />
<xsl:template match="study ">
<table cellpadding="0" cellspacing="0" border="0" width="800px" >
<tr>
	<td align="center"><a href=""><xsl:attribute name="href">https://templocalvario.s3.amazonaws.com/<xsl:value-of select="@file"/>.mp3</xsl:attribute><IMG border="0" SRC="/images/Stream.jpg"/></a></td>
	<td align="center"><a href=""><IMG border="0" SRC="/images/MP3.jpg"/></a></td>
</tr>
<tr>
	<td align="center"><a class="footer" href="">Escucha Ahora</a></td>
	<td align="center"><a class="footer" href="">Descarga Archivo</a></td>
</tr>	
<tr>
<td align="center" valign="top" colspan="2">
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
		<tr>
		<xsl:for-each select="bibleverse">
			<td style="text-align:center;">
				<a href="" class="BibleStudyLink">
					<xsl:attribute name="href">#<xsl:value-of select="@ordinalpos"/></xsl:attribute>
					<xsl:value-of select="@bookname"/>&#160;<xsl:value-of select="@chapter"/>: <xsl:value-of select="@verse"/> 
				</a>
			</td>
		</xsl:for-each>
		</tr>
	</table>
	<p><br/></p>
</td>
</tr>
<xsl:for-each select="bibleverse">
<tr>
	<td align="center" valign="top" colspan="2">
		<table style="width:100%;border-collapse:collapse;">
	<tr>
		<td class="grid-row center" colspan="2">
			<b>
			<xsl:value-of select="@bookname"/>&#160;<xsl:value-of select="@chapter"/>: <xsl:value-of select="@verse"/> 
			</b>
			<a >
				<xsl:attribute name="name">#<xsl:value-of select="@ordinalpos"/></xsl:attribute>
				</a>

			<br/>
		</td>
	</tr>			
			<xsl:for-each select="verse">
			<xsl:variable name="vClass">
				<xsl:choose>
					<xsl:when test="position() = 1"></xsl:when>
					<xsl:when test="position() mod 2 = 0">grid-row-alternate</xsl:when>
					<xsl:otherwise></xsl:otherwise>
				</xsl:choose>
			</xsl:variable>				
			<tr>
			<xsl:attribute name="class"><xsl:value-of select="$vClass"/></xsl:attribute>
			<td class="grid-row center">
			<nobr>
				<xsl:value-of select="@chapter"/>:<xsl:value-of select="@verse"/>
			</nobr>
			</td><td class="">
				<xsl:value-of select="@text"/>
			</td>
			</tr>
			</xsl:for-each>		

				<tr>
		<td class="center" colspan="2">
			<a href="#top">
				Back to Top
				</a>

			<br/>
		</td>
	</tr>	
		</table>
		<br/><br/>
	</td>
</tr>	
</xsl:for-each>		
</table>
</xsl:template>


</xsl:stylesheet>
